package com.itheima.case2.service;

import com.itheima.case2.pojo.po.Permission;
import com.itheima.case2.pojo.vo.AddPermission;
import com.itheima.case2.pojo.vo.PageResult;
import com.itheima.case2.pojo.vo.QueryPageBean;
import com.itheima.case2.pojo.vo.UpdatePermission;

import java.util.List;

public interface PermissionService {
    //查询所有权限信息
    List<Permission> queryAllPermission();
    //获取角色分页数据
    PageResult queryPerAndRoleByPage(QueryPageBean pageBean);
    //修改权限和对应角色信息
    void updatePerAndRole(UpdatePermission updatePermission);
    //添加权限和对应角色信息
    void insertPerAndRole(AddPermission addPermission);
    //删除权限和对应角色信息
    void deleteById(String roleId);
}
